"""点模型定义文件"""
from typing import List

from pydantic import BaseModel

from api.v1.models.pagination import PaginationResponse


class PointBase(BaseModel):
    """点响应模型"""
    po_content: str
    po_point: int
    po_rel_table: str
    po_rel_id: str
    po_rel_action: str


class PointListResponse(PaginationResponse):
    """点列表Lup响应模型"""
    total_points: int  # 满分合计
    page_sum_points: dict = {
        "positive": 0,
        "negative": 0
    }  # 页内点数据
    points: List[PointBase]
